package com.qf.mapper;

import com.qf.pojo.Classroom;
import com.qf.utils.ResultMsg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassroomMapper {
    List<Classroom> selectAll(@Param("page") int page, @Param("limit") int limit);

    Classroom selectOne(int classroomId);

    int update(Classroom classroom);

    int isertinto(Classroom classroom);

    int deleteOne(int classroomId);

    int deleteMul(@Param("ids") List<Integer> classroomIds);

    List<Classroom> selectDim(@Param("page") int page, @Param("limit") int limit,@Param("classroomName") String classroomName,@Param("classroomType")String classroomType,@Param("classroomStatus") Integer classroomStatus);

    int updateStatus(@Param("classroomId") int classroomId,@Param("classroomStatus") int classroomStatus);

    int updateStatusMul(@Param("classroomIds") List<Integer> classroomIds, @Param("classroomStatus") Integer classroomStatus);
}
